home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group98b.txt
/
000116_icon-group-sender _Mon Jun 29 16:24:27 1998.msg
< prev
next >
Wrap
Internet Message Format
|
2000-09-20
|
2KB
Return-Path: <icon-group-sender>
Received: from kingfisher.CS.Arizona.EDU (kingfisher.CS.Arizona.EDU [192.12.69.239])
by baskerville.CS.Arizona.EDU (8.8.8/8.8.7) with SMTP id QAA25635
for <icon-group-addresses@baskerville.CS.Arizona.EDU>; Mon, 29 Jun 1998 16:24:26 -0700 (MST)
Received: by kingfisher.CS.Arizona.EDU (5.65v4.0/1.1.8.2/08Nov94-0446PM)
id AA01169; Mon, 29 Jun 1998 16:24:14 -0700
Message-Id: <3597BA27.532@gte.net>
Date: Mon, 29 Jun 1998 11:00:39 -0500
From: MJE <evans@gte.net>
Reply-To: evans@gte.net
Organization: None
X-Mailer: Mozilla 3.01 (Win95; I)
Mime-Version: 1.0
To: icon-group@optima.CS.Arizona.EDU
Subject: Re: Retrieving lists from tables
References: <35970078.4332DA12@ix.netcom.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Errors-To: icon-group-errors@optima.CS.Arizona.EDU
Status: RO
Content-Length: 876
Would a two-way table help? You would have to maintain a second table
indexed by record that stores the list keys. Every time you do an
action on the first table, you have to do it also on the second one to
keep them synchronized.
Mark
Phillip Lee Thomas wrote:
>
> I'm working on a project where it would be most convenient to store
> information in a table where the index is a list and the value is a
> record; however, I find it not obvious how to retrieve the data as lists
> are retrieved by their ID number, not their value. Any suggestions?
>
> record ref(part1,part2)
> # Initially...
> t := table()
> L := ["house","horse"]
> t[L] := ref(1,2)
> # Later...
> L2 := ["house","horse"]
> Now I want to find out if a list with the content of L2 is in table t,
> and if so to augment the value of its part1.
>
> -- Phillip Thomas